﻿using System;
using System.Configuration;

namespace K3R.Email {
	#region Exceptions
	public class EmailNotFoundException : Exception {
		public EmailNotFoundException() { }
		public EmailNotFoundException(Exception innerException)
			: base("Not Found", innerException) {
		}
	}

	public class EmailAlreadyActionedException : Exception {
		public EmailAlreadyActionedException() { }
		public EmailAlreadyActionedException(Exception innerException)
			: base("Already Actioned", innerException) {
		}
	}

	public class EmailCancelledException : Exception {
		public EmailCancelledException() { }
		public EmailCancelledException(Exception innerException)
			: base("Cancelled", innerException) {
		}
	}
	#endregion

	#region Enumerations
	public enum EmailType {
		Newsletter = 1, Registration = 2, PasswordReset = 3, OrderComplete = 4
	}
	#endregion
}
